﻿// -----------------------------------------------------------------------------
// 园丁,是个很简单的管理系统
//  gitee:https://gitee.com/hgflydream/Gardener 
//  issues:https://gitee.com/hgflydream/Gardener/issues 
// -----------------------------------------------------------------------------

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System;
using Gardener.Enums;
using Gardener.Base.Entity;
using Gardener.Authentication.Enums;
using Furion.DatabaseAccessor;

namespace Gardener.CodeGeneration.SeedDatas
{
    /// <summary>
    /// 种子数据
    /// </summary>
    public class FunctionSeedData : IEntitySeedData<Function>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<Function> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]{
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="导出",Key="B544D64F87CECA7C98BD6D944E214805",Description="导出数据",Path="/api/code-gen/export",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("deb0a631-d0fb-4b6f-8b0d-bfeee5c759c8"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:54"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="生成种子数据",Key="3AC3E3B3217897587A05BE31D478A39D",Description="根据搜索条叫生成种子数据",Path="/api/code-gen/generate-seed-data",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("9c6702ef-176c-4bff-90d3-5e6883d65399"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:53"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="搜索",Key="D0BD4286146CB2D2B1A7B2950E509F72",Description="搜索数据",Path="/api/code-gen/search",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("875de992-3eb6-478d-82a9-6994e6cabf44"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:53"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="锁定",Key="684524DB0FA81872CF18DBB1C7557421",Description="根据主键锁定或解锁数据（必须有IsLock才能生效）",Path="/api/code-gen/{id}/lock/{islocked}",Method=Enum.Parse<HttpMethod>("PUT"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("d0a4b504-f401-4c1b-a43e-08cca27bd170"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:53"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="分页查询",Key="8160D0CFFF66846429B61257A1508536",Description="根据分页参数，分页获取数据",Path="/api/code-gen/page/{pageindex}/{pagesize}",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("c81ba6ae-ab11-4e2f-b3a7-cf6cf22284f0"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:52"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="查询所有可以用的",Key="0034E714497B05DB3FA37E8D28D730A1",Description="查询所有可以用的(在有IsDelete、IsLock字段时会自动过滤)",Path="/api/code-gen/all-usable",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("ab562cb0-7919-4b26-836a-f5865c1ddf63"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:52"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="查询所有",Key="F73EC4D6186B170DD30D0084F7CB1D04",Description="查找到所有数据",Path="/api/code-gen/all",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("0a0cfc96-79d4-473e-aaef-91ae86c640d3"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:52"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="批量逻辑删除",Key="D5F8E4AACAFC9C5D3FDB3287E106CE2D",Description="根据多个主键批量逻辑删除",Path="/api/code-gen/fake-deletes",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("9ba644e7-fdba-4be3-9ab7-b9c8f344652c"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:51"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="逻辑删除",Key="F6565C4790EECA32489B71CF74208BDB",Description="根据主键逻辑删除",Path="/api/code-gen/fake-delete/{id}",Method=Enum.Parse<HttpMethod>("DELETE"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("f41a15c0-62cc-4e17-a126-15d4873fca33"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:51"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="批量删除",Key="A657348B3DA465884F1DB1275C763DA7",Description="根据多个主键批量删除",Path="/api/code-gen/deletes",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("383f8a77-378d-415a-a11d-1e10cc09bd6b"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:51"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="导入多语言",Key="6EB0EC8EE348241D62D68C48E6C85BED",Description="{codegenid}",Path="/api/code-gen/generate-locale/{codegenid}",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("c01f4723-8efa-4268-b793-901c75934f6c"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:50"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="生成菜单数据",Key="0436D43457349178B130D1C651AFCD6D",Description="{codegenid}",Path="/api/code-gen/generate-menu/{codegenid}",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("c831e1fc-a428-41bc-876a-f158d0159a01"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:50"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="打开代码目录",Key="B3D81BD31F37628B71C6B6FFDF3D719E",Description="open-code-gen-folder",Path="/api/code-gen/open-code-gen-folder",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("438d1c2f-f0fa-4975-bac5-13c5f3a2645b"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:50"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="生成代码",Key="58F507AB025E3DD861EFE9AF5FAED7D3",Description="generate-code",Path="/api/code-gen/generate-code",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("8267679d-0482-4b2d-81ca-67a555f28b79"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:49"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="根据主键获取",Key="3DDEDB9584240DB31E6D343A2013BC49",Description="根据主键查找一条数据",Path="/api/code-gen/{id}",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("db38be6f-754f-493a-ad9a-70e32ec80dca"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:49"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="删除",Key="1CFFA0F2216B185E282E88F7AE873F43",Description="{id}",Path="/api/code-gen/{id}",Method=Enum.Parse<HttpMethod>("DELETE"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("91ebe8d4-2b04-4277-b743-4f3a66bd487d"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:49"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="更新",Key="FDD5BB4E7994DBDDAC2764230F31BC75",Description="code-gen",Path="/api/code-gen",Method=Enum.Parse<HttpMethod>("PUT"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("3a679983-7a4e-4c1c-b3e0-8b374f6ebc91"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:48"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="添加配置",Key="2D20CFA2D1B0C847C2F9AA33215EA872",Description="code-gen",Path="/api/code-gen",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("aa7a6284-4351-4853-b066-4ea925fe36cc"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:48"),},
                new Function() {Group="系统基础服务",Service="代码生成 - DB First",Summary="获取表列表",Key="DDC76CDC58280006E86B2F5354E71058",Description="table-list",Path="/api/code-gen/table-list",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("a7f5ae02-cff0-4281-a153-145e612fb1ca"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:48"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="导出",Key="9428EC584D39E7558884C1BE60B6325C",Description="导出数据",Path="/api/code-gen-config/export",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("1df3723c-f435-4fba-a751-7a63e5b98cfe"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:47"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="生成种子数据",Key="366BAD01449B2FD91948CE215296D4DE",Description="根据搜索条叫生成种子数据",Path="/api/code-gen-config/generate-seed-data",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("9b34d89d-af78-4c4e-9326-d9d909c7ef19"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:47"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="搜索",Key="2498E3052239D4287BEA0D8B3F21F50A",Description="搜索数据",Path="/api/code-gen-config/search",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("513f19e0-c96f-49e6-b763-734527548dc3"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:46"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="锁定",Key="E6AA2D3457A2946923C9B1BBF4092E42",Description="根据主键锁定或解锁数据（必须有IsLock才能生效）",Path="/api/code-gen-config/{id}/lock/{islocked}",Method=Enum.Parse<HttpMethod>("PUT"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("1f60193e-30ed-412b-8afd-f8f1f8d45703"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:46"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="分页查询",Key="53F1180444D85BF8C79EFB89DFCF2A11",Description="根据分页参数，分页获取数据",Path="/api/code-gen-config/page/{pageindex}/{pagesize}",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("d0f31c64-db5d-4d25-a7fb-f82b0caf6760"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:46"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="查询所有可以用的",Key="56F09861128F3AE3FC2496CAB12749D6",Description="查询所有可以用的(在有IsDelete、IsLock字段时会自动过滤)",Path="/api/code-gen-config/all-usable",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("023f5b95-d07b-4118-a601-dcbd0cc191af"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:45"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="查询所有",Key="C9B949B9979521AB3FAB741C8177CA7C",Description="查找到所有数据",Path="/api/code-gen-config/all",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("ec1a6751-d862-4808-8032-033463fdb65e"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:44"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="批量逻辑删除",Key="518FA5CE716696F2F9AEC8D3C85D46AE",Description="根据多个主键批量逻辑删除",Path="/api/code-gen-config/fake-deletes",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("8d97bc08-7505-4b87-a99d-dc555a28265e"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:43"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="逻辑删除",Key="60BB1B471DADBD43F1A6E69E7233BE6A",Description="根据主键逻辑删除",Path="/api/code-gen-config/fake-delete/{id}",Method=Enum.Parse<HttpMethod>("DELETE"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("17e7dc0d-b36a-48e6-9e5f-645baf674299"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:43"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="批量删除",Key="90302348A7CC0816FA57893583185966",Description="根据多个主键批量删除",Path="/api/code-gen-config/deletes",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("e22446f3-1a8c-4500-ab7b-8922f70a811a"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:42"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="根据主键获取",Key="324BB8D9B949D3E0BF9A1A1B4A346CC1",Description="根据主键查找一条数据",Path="/api/code-gen-config/{id}",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("4c4b9d0c-6137-437c-8b04-833c73e8a70d"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:42"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="删除",Key="545EECBD21B11E9C77FAA49044CB4C09",Description="根据主键删除一条数据",Path="/api/code-gen-config/{id}",Method=Enum.Parse<HttpMethod>("DELETE"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("fc78f4d2-2c96-40f3-9178-83c1be5c00e4"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:42"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="更新",Key="99C5D9DAADE9FF4039861475A7C4E7D8",Description="更新一条数据",Path="/api/code-gen-config",Method=Enum.Parse<HttpMethod>("PUT"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("c9cf322b-5228-4ea9-b40d-64534db5d292"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:42"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="添加",Key="3BA59B7F7AB75F87CFC9B46593496FBB",Description="添加一条数据",Path="/api/code-gen-config",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("984eedd6-ff5e-46fc-a51c-4650af8f9171"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:41"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="保存",Key="E557654AE20986A0E2E7297D32D66170",Description="save-all",Path="/api/code-gen-config/save-all",Method=Enum.Parse<HttpMethod>("POST"),EnableAudit=true,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("18f4fc9a-8670-4fcb-a13b-03aec85c673a"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:41"),},
                new Function() {Group="系统基础服务",Service="代码生成配置 - DB First",Summary="获取代码生成配置",Key="DD83F39265552523A9C35427C3E90DCF",Description="{codegenid}",Path="/api/code-gen-config/code-gen-configs-by-code-gen-id/{codegenid}",Method=Enum.Parse<HttpMethod>("GET"),EnableAudit=false,IsLocked=false,IsDeleted=false,CreateBy="1",CreateIdentityType=Enum.Parse<IdentityType>("User"),Id=Guid.Parse("0f43ba88-09f0-4b8d-83ef-e7747a3c9ed2"),CreatedTime=DateTimeOffset.Parse("2022-12-27 11:46:41"),},
         };
        }

    }
}